using Assets.Scripts.GDK;

namespace Brick
{
	public class BallBoxModule : gdk_base_Imodule
	{
		private int curBallNums = 50;

		private int curAddBallNums;

		private int curlimitBall;

		private int sendOutBalls;

		private bool isBallsBack;

		private int ballSpeed = 1200;

		private int ballbackSpeed = 700;

		private int testType = 5;

		public void SetBallNum(int num)
		{
			curBallNums = num;
		}

		public void SetAddBallNum(int num)
		{
			curAddBallNums = num;
		}

		public void SetAddLimitBallNum(int num)
		{
			curlimitBall = num;
		}

		public int GetBallNum()
		{
			return curBallNums + curAddBallNums;
		}

		public int GetComBallsNum()
		{
			return curBallNums;
		}

		public void SetBallBack(bool bBack)
		{
			isBallsBack = bBack;
		}

		public bool GetBallsBack()
		{
			return isBallsBack;
		}

		public void OnSendOut()
		{
			sendOutBalls++;
		}

		public void CleanSendOut()
		{
			sendOutBalls = 0;
		}

		public int GetSendOut()
		{
			return curBallNums + curAddBallNums;
		}

		public void setBallSpeed(int sp)
		{
			ballSpeed = sp;
		}

		public void setBallBackSpeed(int sp)
		{
			ballbackSpeed = sp;
		}

		public int getBallSpeed()
		{
			return ballSpeed;
		}

		public int getBallBackSpeed()
		{
			return ballbackSpeed;
		}

		public void AddTestType()
		{
			testType++;
		}

		public int getTestType()
		{
			return testType;
		}
	}
}

